import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter)


//路由配置
const router = new VueRouter({
    routes: [
        {
            path: '/',
            redirect: '/index'
        },
        {
            path: '/index',
            component: () => import("@/components/news/index")
        },
        {
            path: '/statistics',
            component: () => import("@/components/statistics/index")
        }
    ]
});

export default router;
